import request from "../utils/request";
// 查询员工列表
export const searchEmpPage = (searchForm,page,pageSize) => request.get(`/emps?name=${searchForm.name}&gender=${searchForm.gender}&begin=${searchForm.begin}&end=${searchForm.end}&page=${page}&pageSize=${pageSize}`)
// 新增员工
export const addEmp = (emp) => request.post("/emps", emp);
// 查询回显
export const getEmpById = (id) => request.get(`/emps/${id}`);
// 修改员工
export const updateEmp = (emp) => request.put('/emps',emp);
// 删除员工
export const deleteByIds = (id) => request.delete("/emps?ids="+id);
